package test.formModel;

import java.awt.Color;
import java.io.File;

import org.destiny.swing.annotation.Form;
import org.destiny.swing.annotation.FormItem;

@Form
public class Person {

	@FormItem(label = "姓名：", prefWidth = 100)
	private String name;

	@FormItem(label = "中国人：")
	private boolean chinese;

	@FormItem(label = "职业：")
	private Profession profession;

	@FormItem(label = "喜欢的颜色：", optionsProducer = MyArrayProducer.class)
	private Color[] loveColors;

	@FormItem(label = "照片：")
	private File photo;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public boolean isChinese() {
		return chinese;
	}

	public void setChinese(boolean chinese) {
		this.chinese = chinese;
	}

	public Profession getProfession() {
		return profession;
	}

	public void setProfession(Profession profession) {
		this.profession = profession;
	}

	public Color[] getLoveColors() {
		return loveColors;
	}

	public void setLoveColors(Color[] loveColors) {
		this.loveColors = loveColors;
	}

	public File getPhoto() {
		return photo;
	}

	public void setPhoto(File photo) {
		this.photo = photo;
	}

}
